import request from '@/utils/request'

export const danmakuApi = {
  // 添加弹幕
  addDanmaku(data) {
    return request({
      url: '/danmaku/addDanmaku',
      method: 'post',
      data
    })
  },

  // 获取视频的弹幕列表
  getDanmaku(videoId) {
    return request({
      url: `/danmaku/getDanmaku/${videoId}`,
      method: 'get'
    })
  }
} 